package com.playfair.core;

import com.playfair.gui.MainDialog;

public class Main {
	public static void main(String[] args) {
		// String key = "playfair example", text =
		// "Hide the gold in the tree stump", code = AppCore
		// .getInstance().encrypt(key, text);
		// System.out.println(code);
		// BMODZBXDNABEKUDMUIXMMOUVIF

		// key - telephone
		// inter - m c
		// end - t
		// text - the quick brown fox is jumping over lazy dog
		// code - FHPINBMGSYNFBCPLGOOFONFQKIMSTF

		// String key = "car", text =
		// "Hide the gold in the tree stump", code = AppCore
		// .getInstance().encrypt(key, text);
		// System.out.println(code);
		// IECIYNFHKMIOTYIFSBGVGPUPKS

		// String key = "sugar", text = "Hide the gold in the tree stump", code
		// = AppCore
		// .getInstance().encrypt(key, text);
		// System.out.println(code);
		// IKEFNMDAQICKONLBZFDYBAORKT

		// String key = "umbrella", text =
		// "The quick brown fox is jumping over lazy dog", code = AppCore
		// .getInstance().encrypt(key, text);
		// System.out.println(code);
		// PNBTBGDIREPVTNQVKQGBAWKGOVZUUDFWRKVO

		// String key = "coffe", text = "Drop down list from combo box", code =
		// AppCore
		// .getInstance().encrypt(key, text);
		// System.out.println(code);
		// LWALLDYLPDTUOSFLOFKGCDFW

		// String key = "televisions", text =
		// "Drop down list from combo box bottle sky airplane torpedo at nine percent",
		// code = AppCore
		// .getInstance().encrypt(key, text);
		// System.out.println(code);
		// HMNMMDXOVTCSHPDWDSRONSNWSNLUEVTOQUBVKQVNOLESKQOMNBLSLBLMIMDTSL

		// System.out.println(AppCore.getInstance().hillClimbAttack(
		// "BMODZBXDNABEKUDMUIXMMOUVIF"));

		// System.out.println("BEST MATCH: "
		// + AppCore.getInstance().owenAttack("UGRMKCSXHMUFMKBTOXGCMVATLUIV"));
		// for (int i = 0; i < 2; i++)
		// Toolkit.getDefaultToolkit().beep();
		new MainDialog();
		// ArrayList<BruteForceAttackResult> list = AppCore.getInstance()
		// .owenAttackTrigram("HMNMMDXOVTCSHPDWDSRONSNWSNLUEVTOQUBVKQVNOLESKQOMNBLSLBLMIMDTSL");
		// System.out.println(list.size());
		// for (BruteForceAttackResult res : list) {
		// System.out.println(res.getResult() + " " + res.getFactor2());
		// }
		// System.exit(0);
	}
}
